package org.idea.qiyu.live.framework.redis.starter.key;

import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: AccountProviderCacheKeyBuilder
 * @Description: TODO
 * @Author zhangguangyan
 * @Date 2023/08/29/ 20:52:39
 * @Version 1.0
 */
@Configuration
@Conditional(RedisKeyLoadMatch.class)
public class AccountProviderCacheKeyBuilder extends RedisKeyBuilder{
    private static String ACCOUNT_TOKEN_KEY = "account";

    public String buildUserLoginToken(String key) {
        return super.getPrefix() + ACCOUNT_TOKEN_KEY + super.getSplitItem() + key;
    }
}
